Skip to content

feat(config): add azure to allowed hosts#19

Merged
fbosch merged 1 commit into
masterfrom
feature/add-azure-to-allowed-hosts
Feb 3, 2026
Merged

feat(config): add azure to allowed hosts#19
fbosch merged 1 commit into
masterfrom
feature/add-azure-to-allowed-hosts

Conversation

@fbosch
Copy link
Copy Markdown
Owner

@fbosch fbosch commented Feb 3, 2026

Summary

Adds Azure DevOps to default allowed Git hosts.

Changes

  • Add "visualstudio.com" to default allowHosts
  • Update documentation with new default host

Copilot AI review requested due to automatic review settings February 3, 2026 12:03
@coderabbitai

This comment was marked as resolved.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Feb 3, 2026

Open in StackBlitz

npx https://pkg.pr.new/fbosch/docs-cache@19

commit: 3b2737b

@fbosch fbosch merged commit 91b394e into master Feb 3, 2026
19 checks passed
@fbosch fbosch deleted the feature/add-azure-to-allowed-hosts branch February 3, 2026 12:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds Azure DevOps to the default allowed Git hosts for the docs-cache configuration. The change enables users to sync documentation from Azure DevOps repositories without having to explicitly configure the allowHosts setting.

Changes:

  • Added "visualstudio.com" to the default allowHosts array in the configuration
  • Updated README.md documentation to reflect the new default allowed host

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/config.ts Added "visualstudio.com" to the DEFAULT_CONFIG.defaults.allowHosts array
README.md Updated the allowHosts documentation to include "visualstudio.com" in the default value list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/config.ts
maxBytes: 200000000,
ignoreHidden: false,
allowHosts: ["github.com", "gitlab.com"],
allowHosts: ["github.com", "gitlab.com", "visualstudio.com"],
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure DevOps uses both "visualstudio.com" (legacy) and "dev.azure.com" (modern) as Git hosts. To properly support Azure DevOps, both domains should be included in the allowHosts array. The modern domain "dev.azure.com" is the current primary domain for Azure DevOps Git repositories, while "visualstudio.com" is still used by older repositories. Consider adding both: ["github.com", "gitlab.com", "visualstudio.com", "dev.azure.com"]

Suggested change
allowHosts: ["github.com", "gitlab.com", "visualstudio.com"],
allowHosts: ["github.com", "gitlab.com", "visualstudio.com", "dev.azure.com"],

Copilot uses AI. Check for mistakes.
Comment thread README.md
| `maxFiles` | Maximum total files to materialize. |
| `ignoreHidden` | Skip hidden files and directories (dotfiles). Default: `false`. |
| `allowHosts` | Allowed Git hosts. Default: `["github.com", "gitlab.com"]`. |
| `allowHosts` | Allowed Git hosts. Default: `["github.com", "gitlab.com", "visualstudio.com"]`. |
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If "dev.azure.com" is added to the allowHosts in src/config.ts, this documentation should also reflect both Azure DevOps domains. Consider updating to: ["github.com", "gitlab.com", "visualstudio.com", "dev.azure.com"]

Suggested change
| `allowHosts` | Allowed Git hosts. Default: `["github.com", "gitlab.com", "visualstudio.com"]`. |
| `allowHosts` | Allowed Git hosts. Default: `["github.com", "gitlab.com", "visualstudio.com", "dev.azure.com"]`. |

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants